This folder contains script and data, divided in sub folders 
---- Traumatic Brain Injury (TBI) 
- TBI script.py script
- DataFP_TBI.npy, DataWH_TBI.npy Raman spectra in FP and HW ranges
- IndexingFP_TBI.npy, IndexingHW_TBI.npy Spectra labelling (lesion, lesion periphery, contralateral hemisphere) 
- axisFP_TBI.npy, axisHW_TBI.npy, Spectral axis for FP and HW ranges

---- Melanoma Brain Metastasis (MBM) experiments ex vivo
- MBM_exvivo_script.py
- ax.npy, axHW.npy axis in FP and HW range
- TU_FP_idx.npy,TU_HW_idx.npy indexes of tumor spectra in FP and HW ranges
- CTRL_FP_idx.npy,CTRL_HW_idx.npy indexes of control spectra in FP and HW ranges
- CL_FP_idx.npy,CL_HW_idx.npy indexes of contralateral spectra in FP and HW ranges
- DataFP_MBM_exvivo.npy Raman spectra, FPrange
- DataHW_MBM_exvivo.npy Raman spectra, HW range


---- Melanoma Brain Metastasis (MBM) experiments in vivo
-MBM_invivo_script.py script
- indexes_MBM_iv.npy spectral labelling (tumor, contralateral, control)
- ax.npy spectral axis 
- Data_MBM_invivo.npy Raman spectra



The following instructions are based on Spyder IDE.

Every folder contains a python script (for example TBI script.py in the TBI folder) and datasets on the Raman spectra, the spectral axis and the spectral labelling.  

The scripts loads the dataset, performs the analysis (baseline subtraction, normalisation, spectral analysis and plotting).
To run a script, open Spyder, open the script and run it.

All script have an option for calculating the baselines or using already calculated baselines loaded the variable explorer.
To run the script without re-calculating the baselines, flip the control on baseline calculation (base=1) and make sure the option for running in the console namespace is selected (Run->Configuration per file-> Run with custom configuration->Run in console's namespace instead of in an empty one).



